<script lang="ts" setup>
const props = defineProps({
  name: {
    type: String,
    required: true,
  },
  color: {
    type: String,
    default: '#00C5DE',
  },
  width: {
    type: String,
    default: '30px',
  },
  height: {
    type: String,
    default: '30px',
  },
})
import { reactive, onMounted } from 'vue'
const style = reactive({
  width: props.width,
  height: props.height,
})
onMounted(() => {
  // console.log(props.width,props.height);
})
</script>
<template>
  <svg :style="style" aria-hidden="true">
    <use :href="`#icon-${name}`" :fill="color" />
  </svg>
</template>
<style lang="scss" scoped></style>
